
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGDrawable.h>
#include <OpenSG/OSGDrawableBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Drawable_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Drawable()
{
    class_< osg::DrawableBase, bases< osg::NodeCore > , boost::noncopyable >("DrawableBase", no_init)
//        .def_readonly("MTInfluenceMask", &osg::DrawableBase::MTInfluenceMask)
        .def("getClassType", &osg::DrawableBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::DrawableBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::DrawableBase::*)() )&osg::DrawableBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::DrawableBase::*)() const)&osg::DrawableBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::DrawableBase::getContainerSize)
        .def("getBinSize", &osg::DrawableBase::getBinSize)
        .def("copyToBin", &osg::DrawableBase::copyToBin)
        .def("copyFromBin", &osg::DrawableBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    ;

    class_< osg::Drawable, bases< osg::DrawableBase > , boost::noncopyable, osg::DrawableRefPtr >("Drawable", no_init)
        //.def_readwrite("statNTriangles", &osg::Drawable::statNTriangles)
        //.def_readwrite("statNLines", &osg::Drawable::statNLines)
        //.def_readwrite("statNPoints", &osg::Drawable::statNPoints)
        //.def_readwrite("statNVertices", &osg::Drawable::statNVertices)
        //.def_readwrite("statNPrimitives", &osg::Drawable::statNPrimitives)
        .def("changed", &osg::Drawable::changed)
        .def("dump", &osg::Drawable::dump, osg_Drawable_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::DrawablePtr>();
    implicitly_convertible<osg::DrawableRefPtr, osg::DrawablePtr>();
    implicitly_convertible<osg::DrawablePtr, osg::NodeCorePtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::DrawablePtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::DrawablePtr>);
}

